var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.render('index');
});

router.get('/getEtcRecords',function(req, res, next) {
  res.json([{
		month: '2016-9',
		details: [
			{
				date: '2016-09-13',
				amount: '10.00',
				location: '沙阳路收费站'
			},
			{
				date: '2016-09-11',
				amount: '15.00',
				location: '温阳路收费站'
			},
			{
				date: '2016-09-10',
				amount: '20.00',
				location: '北清路收费站'
			},
			{
				date: '2016-09-15',
				amount: '10.00',
				location: '沙河路收费站'
			},
			{
				date: '2016-09-25',
				amount: '25.00',
				location: '昌平收费站'
			}
		]
	}, {
		month: '2016-10',
		details: [
			{
				date: '2016-10-13',
				amount: '10.00',
				location: '温阳路收费站'
			},
			{
				date: '2016-10-11',
				amount: '15.00',
				location: '温阳路收费站'
			},
			{
				date: '2016-10-10',
				amount: '20.00',
				location: '聂各庄收费站'
			},
			{
				date: '2016-10-15',
				amount: '10.00',
				location: '上庄收费站'
			},
			{
				date: '2016-10-25',
				amount: '25.00',
				location: '凤凰岭收费站'
			}
		]
	}]);
});

router.get('/listData',function(req, res, next) {
  res.json([
  		{
  			thedrees:'北京E动国际'
  		},
  		{
  			thedrees:'聂各庄东路10号'
  		},
  		{
  			thedrees:'艺术传媒学院'
  		},
  		{
  			thedrees:'呵呵哈哈哈或'
  		}
  	]);

});

router.get('/ssalll',function(req, res, next) {
  res.json([
  		{
  			name:'ladryersrheamng'
  		}
  	]);

});

module.exports = router;
